@ECHO.

:: PackagePath is directory where BizTalk Application will be exported
@Set PackagePath=Package
:: BizTalk Application name
@SET ApplicationName=My.Project
:: MSI name to be exported
@SET MSIName=My.Project
:: File specifying resources for export
@SET ResourceFile=Resource.Spec.My.Project.xml
:: Create package directory
MKDIR %PackagePath%
:: Export application to MSI with all resources
@btstask ExportApp -ApplicationName:%ApplicationName% -Package:%PackagePath%\%MSIName%.msi

:: Resource file if you need to specify which resources you want to export in MSI
:: @btstask ExportApp -ApplicationName:%ApplicationName% -Package:%PackagePath%\%MSIName%.msi -ResourceSpec:%ResourceFile%
pause;